package dao;

import org.apache.ibatis.annotations.Options;
import pojo.User;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/14 11:36
 */
public interface UserDao {
    @Options(useGeneratedKeys = true, keyProperty = "uid", keyColumn = "uid")
    int insertUser(User user);


    List<User> getAllUsers();

    int deleteByUid(Integer Uid);

    int updateUser(User user);

    User loginUser(User user);

    User getByUsername(String username);

    User getByUid(Integer uid);
}
